package com.epsoft.odin7cj.flow.enums.actflow;

/**
 * DESC: 表单审核结果 <br>
 * @author 胡义振
 * @date 2020年6月9日
 */
public enum FormAuditResultEnum {

	AUDIT_RESULT_1("1","通过"),
	AUDIT_RESULT_2("2","退回第一节点"),
	AUDIT_RESULT_3("3","退回上一节点");

    private String code;
    private String message;

    FormAuditResultEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    public static String geItemName(String itemCode){
        String rtnItemName = "";
        for (FormAuditResultEnum zjlxCodeEnum : FormAuditResultEnum.values()) {
            if(zjlxCodeEnum.code.equals(itemCode)){
                rtnItemName = zjlxCodeEnum.message;
            }
        }
        return rtnItemName;
    }

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
